package com.example.demo111.service;

import com.example.demo111.entity.Project;
import com.example.demo111.entity.UserInfo;
import com.example.demo111.entity.Record;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserInfoService {

    Integer selectByNameAndPwd(UserInfo user);
    Integer Userzc(UserInfo userInfo);

    void updatePassword(String name,String pwd,String newpwd);

    UserInfo search();

    void userVote(Integer pid,Integer uid);
    Record selectVoteInfo(Integer pid,Integer uid);

    void VoteAdd(Integer id);
    List<Project> subRecord(Integer uid);
}
